package com.gopay.common.order.aspect.test.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.gopay.common.domain.cps.CpsGenMainOrder;
import com.gopay.common.order.aspect.test.dao.MainOrderDAO;
import com.gopay.common.order.aspect.test.service.MainOrderService;

/**
 * 订单service实现，为AOP提供服务
 * 
 * @MainOrderServiceImpl.java
 * @author yaobo
 * @2013-4-25 上午10:41:00 www.gopay.com.cn Inc.All rights reserved.
 */
@Service("mainOrderService")
public class MainOrderServiceImpl implements MainOrderService {
    @Resource(name = "mainOrderDAO")
    private MainOrderDAO mainOrderDAO;

    @Override
    public void addOrder(CpsGenMainOrder order) {
        mainOrderDAO.addOrder(order);
    }

    @Override
    public void updateOrder(CpsGenMainOrder cpsGenMainOrder) {
        mainOrderDAO.updateOrder(cpsGenMainOrder);
    }

}
